public class SendTask {
    private String number;
    private double goodWeight;

    public  SendTask(String numbe,double goodWeight){
        this.number=numbe;
        this.goodWeight=goodWeight;
    }

    public void sendBefore(){
        System.out.println("订单开始处理，仓库验货中...");
        System.out.println("货物重量"+this.goodWeight);
        System.out.println("货物检验完毕");
        System.out.println("货物填装完毕");
        System.out.println("运货人已通知");
        System.out.println("快递单号："+this.number);
    }

    public  void send(Transportation T,Phone P){
        System.out.println("运货人"+T.getVehiclemanager()+"正在驾驶编号为"+T.getVehiclenumber()+"的"+T.getVehiclemodel()+"发送货物");
        System.out.println("运货中...");
        System.out.println("货物当前坐标为"+P.show());
    }

    public void after(Transportation T){
        System.out.println("货物运输任务已完成！");
        System.out.println("运货人"+T.getVehiclemanager()+"所驾驶编号为"+T.getVehiclenumber()+"的"+T.getVehiclemodel()+"已归还");
    }

    public double getGoodWeight() {
        return goodWeight;
    }

    public String getNumber() {
        return number;
    }

    public void setGoodWeight(double goodWeight) {
        this.goodWeight = goodWeight;
    }

    public void setNumber(String number) {
        this.number = number;
    }
}
